
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Swagger UI</title>
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css" >
    <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
    <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
    <style>
        html
        {
            box-sizing: border-box;
            overflow: -moz-scrollbars-vertical;
            overflow-y: scroll;
        }
        *,
        *:before,
        *:after
        {
            box-sizing: inherit;
        }

        body {
            margin:0;
            background: #fafafa;
        }
    </style>
</head>

<body>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
    <defs>
        <symbol viewBox="0 0 20 20" id="unlocked">
            <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
        </symbol>

        <symbol viewBox="0 0 20 20" id="locked">
            <path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="close">
            <path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="large-arrow">
            <path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"/>
        </symbol>

        <symbol viewBox="0 0 20 20" id="large-arrow-down">
            <path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"/>
        </symbol>


        <symbol viewBox="0 0 24 24" id="jump-to">
            <path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
        </symbol>

        <symbol viewBox="0 0 24 24" id="expand">
            <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
        </symbol>

    </defs>
</svg>

<div id="swagger-ui"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-bundle.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-standalone-preset.js"> </script>
<script>
    window.onload = function() {
        const ui = SwaggerUIBundle({
            spec: {
    "swagger": "2.0",
    "info": {
        "title": "pay/proto/api.proto",
        "version": ""
    },
    "schemes": [
        "http",
        "https"
    ],
    "consumes": [
        "application/json",
        "multipart/form-data"
    ],
    "produces": [
        "application/json"
    ],
    "paths": {
        "/pay.Pay/CancelPayOrder": {
            "get": {
                "summary": "取消支付单",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.PayOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "支付单号/退款单号",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "ext_order_number",
                        "description": "上游系统业务号(biz_no)",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/CreatePayOrder": {
            "get": {
                "summary": "创建支付单",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DoPayOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CreatePayOrderRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/CreateRefundOrder": {
            "get": {
                "summary": "创建退款单",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.RefundOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "支付单号",
                        "in": "query",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "emp_id",
                        "description": "员工ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "refund_amount",
                        "description": "退款金额(单位：分)，仅0元单允许退款金额为0",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    },
                    {
                        "name": "biz_no",
                        "description": "请求唯一标识(用于幂等)",
                        "in": "query",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "reason",
                        "description": "退款原因",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/DoPayment": {
            "get": {
                "summary": "小程序预支付 / 直接发起0元单\u0026会员支付",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DoPayOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "支付单号",
                        "in": "query",
                        "required": true,
                        "type": "string"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/GetAvailablePayTypes": {
            "get": {
                "summary": "查看可用支付方式",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.PayTypeList"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "sg_id",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "source",
                        "description": "品牌ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    },
                    {
                        "name": "biz_type",
                        "description": "支付业务类型,in_enum",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/GetRefundOrder": {
            "get": {
                "summary": "查看退款单详情（申请中退款单会更新退款状态）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.RefundOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "支付单号/退款单号",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    },
                    {
                        "name": "ext_order_number",
                        "description": "上游系统业务号(biz_no)",
                        "in": "query",
                        "required": false,
                        "type": "string"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/RefundRetry": {
            "get": {
                "summary": "退款失败重试/标记",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.RefundOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "退款单号",
                        "in": "query",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "is_marked",
                        "description": "是否标记退款成功（仅退款失败订单允许通过此标记更新为退款协商成功）",
                        "in": "query",
                        "required": false,
                        "type": "boolean"
                    },
                    {
                        "name": "emp_id",
                        "description": "员工ID",
                        "in": "query",
                        "required": true,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay.Pay/TriggerPaySuccess": {
            "get": {
                "summary": "前端主动触发支付成功（开启查询定时任务）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.PayOrderView"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "order_number",
                        "description": "支付单号",
                        "in": "query",
                        "required": true,
                        "type": "string"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/alipay/account": {
            "get": {
                "summary": "查看支付宝收款账户配置",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.GetAlipayAccountListResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonPaginateRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "delete": {
                "summary": "删除支付宝收款账户",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "获取支付宝当面付授权链接(授权成功自动查询进件状态)",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.AlipayAuthResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "put": {
                "summary": "编辑支付宝收款账户别名",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.EditAlipayAccountRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/alipay/apply": {
            "get": {
                "summary": "查看支付宝进件详细信息（基于收款账户ID）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.QueryAlipayAccountApplyResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "创建支付宝进件申请单并提交进件 / 基于已有申请重新发起进件",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.ApplyAlipayAccountResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.ApplyAlipayAccountRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/alipay/authorize": {
            "get": {
                "summary": "支付宝当面付授权回调 + 更新进件状态",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.StringResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.AlipayAuthorizeRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/alipay/callback": {
            "post": {
                "summary": "支付宝订单回调",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.StringResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.MixCallbackRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/bytedance/callback": {
            "post": {
                "summary": "字节跳动订单回调",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.ByteDanceCallbackResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.ByteDanceCallbackRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/config/global": {
            "get": {
                "summary": "查看全局收款设置",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.GetPayGlobalConfigResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "修改全局收款设置",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.EditPayGlobalConfigRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/config/image": {
            "post": {
                "summary": "微信专用上传图片",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.wxpay.ImageUploadResponse"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.UploadImageRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/config/store": {
            "get": {
                "summary": "查看店铺收款设置列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.GetPayStoreConfigResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.GetPayStoreConfigRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "delete": {
                "summary": "解绑收款账户到品牌\u0026店铺",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.UnbindPayStoreConfigRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "绑定收款账户到品牌\u0026店铺",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.BindPayStoreConfigRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/schedule/expire/check": {
            "get": {
                "summary": "支付单过期自检",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/schedule/refresh/alipay": {
            "get": {
                "summary": "支付宝token定时刷新",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/schedule/retry/nsq": {
            "get": {
                "summary": "NSQ消息重试",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "limit",
                        "description": "重试条数",
                        "in": "query",
                        "required": false,
                        "type": "integer"
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/schedule/retry/query": {
            "get": {
                "summary": "定时查询(触发重试nsq消息，不落nsq重试任务表)",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/selection/account": {
            "get": {
                "summary": "收款账户下拉框(门店模式时可一件)",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.PayAccountSelectionResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.PayAccountSelectionRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/wechat/account": {
            "get": {
                "summary": "查看微信收款账户配置列表",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.GetWechatAccountListResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonPaginateRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "delete": {
                "summary": "删除微信收款账户（基于收款账户ID）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "直接创建微信收款账户（无需进件）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CreateWechatAccountRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "put": {
                "summary": "编辑微信收款账户别名",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.EditWechatAccountRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/wechat/apply": {
            "get": {
                "summary": "查看微信进件详细信息（基于收款账户ID）",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.QueryWechatAccountApplyResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.CommonObjectRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            },
            "post": {
                "summary": "创建微信进件申请单并提交进件 / 基于已有申请重新进件",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.ApplyWechatAccountResp"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.ApplyWechatAccountRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/pay/wechat/image": {
            "post": {
                "summary": "通用上传图片",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.wxpay.ImageUploadV2Response"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/.pay.UploadImageRequest"
                        }
                    }
                ],
                "tags": [
                    "pay.Pay"
                ]
            }
        },
        "/ping": {
            "get": {
                "summary": "健康检查",
                "responses": {
                    "200": {
                        "description": "A successful response.",
                        "schema": {
                            "$ref": "#/definitions/.pay.DefaultResp"
                        }
                    }
                },
                "tags": [
                    "pay.Pay"
                ]
            }
        }
    },
    "definitions": {
        ".google.protobuf.Empty": {
            "type": "object",
            "properties": {},
            "description": "A generic empty message that you can re-use to avoid defining duplicated\n empty messages in your APIs. A typical example is to use it as the request\n or the response type of an API method. For instance:\n\n     service Foo {\n       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n     }\n\n The JSON representation for `Empty` is empty JSON object `{}`."
        },
        ".pay.AccountConfigStoreView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "门店名"
                }
            }
        },
        ".pay.AlipayAccountView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名"
                },
                "app_id": {
                    "type": "string",
                    "description": "AppID"
                },
                "p_id": {
                    "type": "string",
                    "description": "支付宝PID"
                },
                "status": {
                    "type": "integer",
                    "description": "账户状态"
                }
            }
        },
        ".pay.AlipayAuthResp": {
            "type": "object",
            "properties": {
                "app_id": {
                    "type": "string",
                    "description": "服务商AppID"
                }
            }
        },
        ".pay.AlipayAuthorizeRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "app_id": {
                    "type": "string",
                    "description": "母商户ID"
                },
                "app_auth_code": {
                    "type": "string",
                    "description": "授权码"
                },
                "state": {
                    "type": "string",
                    "description": "加密字串"
                }
            },
            "required": [
                "app_id",
                "app_auth_code"
            ]
        },
        ".pay.AlipayFaceToSignInfo": {
            "type": "object",
            "properties": {
                "alipayAccount": {
                    "type": "string",
                    "description": "支付宝账号"
                },
                "contactName": {
                    "type": "string",
                    "description": "联系人名称"
                },
                "contactMobile": {
                    "type": "string",
                    "description": "联系人手机号"
                },
                "contactEmail": {
                    "type": "string",
                    "description": "联系人邮箱"
                },
                "mccCode": {
                    "type": "string",
                    "description": "商家经营类目"
                },
                "specialLicensePic": {
                    "type": "string",
                    "description": "企业特殊资质图片"
                },
                "rate": {
                    "type": "string",
                    "description": "服务费率"
                },
                "signAndAuth": {
                    "type": "boolean",
                    "description": "签约且授权操作"
                },
                "businessLicenseNo": {
                    "type": "string",
                    "description": "营业执照号码"
                },
                "businessLicensePic": {
                    "type": "string",
                    "description": "营业执照图片"
                },
                "businessLicenseAuthPic": {
                    "type": "string",
                    "description": "营业执照授权函图片"
                },
                "longTerm": {
                    "type": "boolean",
                    "description": "是否长期有效"
                },
                "dateLimitation": {
                    "type": "string",
                    "description": "营业期限"
                },
                "shopScenePic": {
                    "type": "string",
                    "description": "店铺内景照片"
                },
                "shopSignBoardPic": {
                    "type": "string",
                    "description": "店铺门头照片"
                }
            },
            "required": [
                "alipayAccount",
                "contactName",
                "contactMobile",
                "contactEmail",
                "mccCode"
            ]
        },
        ".pay.ApplyAlipayAccountRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "收款账户ID"
                },
                "info": {
                    "$ref": "#/definitions/.pay.AlipayFaceToSignInfo",
                    "description": "支付宝当面付申请专用参数"
                }
            },
            "required": [
                "id",
                "info"
            ]
        },
        ".pay.ApplyAlipayAccountResp": {
            "type": "object",
            "properties": {
                "account_info": {
                    "$ref": "#/definitions/.pay.AlipayAccountView",
                    "description": "收款账户信息"
                },
                "apply_result": {
                    "$ref": "#/definitions/.wxpay.AliFaceToFaceSignResponse",
                    "description": "进件系统返回信息"
                }
            }
        },
        ".pay.ApplyWechatAccountRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "收款账户ID(为零/不指定时，为新建记录并提交进件，重试进件时则需要指定id)"
                },
                "type": {
                    "type": "integer",
                    "description": "收款账户类型"
                },
                "biz_license_info": {
                    "$ref": "#/definitions/.wxpay.BizLicenseInfo",
                    "description": "营业执照/登记证书信息"
                },
                "organization_cert_info": {
                    "$ref": "#/definitions/.wxpay.OrganizationCertInfo",
                    "description": "组织机构代码证信息"
                },
                "id_doc_type": {
                    "type": "string",
                    "description": "经营者/法人证件类型"
                },
                "id_card_info": {
                    "$ref": "#/definitions/.wxpay.IDCardInfo",
                    "description": "经营者/法人身份证信息"
                },
                "id_doc_info": {
                    "$ref": "#/definitions/.wxpay.IDDocInfo",
                    "description": "经营者/法人其他类型证件信息"
                },
                "need_account_info": {
                    "type": "boolean",
                    "description": "是否填写结算银行账户"
                },
                "account_info": {
                    "$ref": "#/definitions/.wxpay.AccountInfo",
                    "description": "结算银行账户"
                },
                "contact_info": {
                    "$ref": "#/definitions/.wxpay.ContactInfo",
                    "description": "超级管理员信息"
                },
                "sales_scene_info": {
                    "$ref": "#/definitions/.wxpay.SalesSceneInfo",
                    "description": "店铺信息"
                },
                "merchant_shortname": {
                    "type": "string",
                    "description": "商户简称"
                },
                "qualifications": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "特殊资质,max=5"
                },
                "business_addition_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "补充材料,max=5"
                },
                "business_addition_desc": {
                    "type": "string",
                    "description": "补充说明"
                }
            },
            "required": [
                "id_doc_type",
                "contact_info",
                "sales_scene_info",
                "merchant_shortname"
            ]
        },
        ".pay.ApplyWechatAccountResp": {
            "type": "object",
            "properties": {
                "account_info": {
                    "$ref": "#/definitions/.pay.WechatAccountView",
                    "description": "收款账户信息"
                },
                "apply_result": {
                    "$ref": "#/definitions/.wxpay.ApplymentSubmitResponse",
                    "description": "进件系统返回信息"
                }
            }
        },
        ".pay.BindPayStoreConfigRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "目标配置（自营~0，门店~门店ID）"
                },
                "account_id": {
                    "type": "integer",
                    "description": "收款账户ID"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "平台,oneof=2 3 4"
                }
            },
            "required": [
                "store_id",
                "account_id",
                "pay_type"
            ]
        },
        ".pay.ByteDanceCallbackRequest": {
            "type": "object",
            "properties": {
                "timestamp": {
                    "type": "integer"
                },
                "nonce": {
                    "type": "string"
                },
                "msg": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "msg_signature": {
                    "type": "string"
                }
            }
        },
        ".pay.ByteDanceCallbackResp": {
            "type": "object",
            "properties": {
                "err_no": {
                    "type": "integer",
                    "description": "0 \u0026 1"
                },
                "err_tips": {
                    "type": "string",
                    "description": "success \u0026 failed"
                }
            }
        },
        ".pay.ByteDanceVerifyRequest": {
            "type": "object",
            "properties": {
                "timestamp": {
                    "type": "integer"
                },
                "nonce": {
                    "type": "string"
                },
                "msg": {
                    "type": "string"
                },
                "echostr": {
                    "type": "string"
                },
                "signature": {
                    "type": "string"
                }
            }
        },
        ".pay.CommonObjectRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "对象ID"
                }
            },
            "required": [
                "id"
            ]
        },
        ".pay.CommonOrderRequest": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "支付单号"
                }
            },
            "required": [
                "order_number"
            ]
        },
        ".pay.CommonPaginateRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）"
                }
            },
            "required": [
                "page_no",
                "page_size"
            ]
        },
        ".pay.CommonQueryRequest": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "支付单号/退款单号"
                },
                "ext_order_number": {
                    "type": "string",
                    "description": "上游系统业务号(biz_no)"
                }
            },
            "description": "外部通用查询"
        },
        ".pay.CommonRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                }
            }
        },
        ".pay.CommonRetryRequest": {
            "type": "object",
            "properties": {
                "limit": {
                    "type": "integer",
                    "description": "重试条数"
                }
            }
        },
        ".pay.CreatePayOrderRequest": {
            "type": "object",
            "properties": {
                "order_key": {
                    "type": "string",
                    "description": "支付者唯一标识（通常可取会员ID），用于限制并发和生成订单号,max=12"
                },
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "app_id": {
                    "type": "string",
                    "description": "小程序app_id"
                },
                "open_id": {
                    "type": "string",
                    "description": "小程序open_id"
                },
                "source_type": {
                    "type": "integer",
                    "description": "平台枚举类型值"
                },
                "biz_type": {
                    "type": "integer",
                    "description": "支付业务类型,in_enum"
                },
                "biz_store": {
                    "type": "integer",
                    "description": "总部~0/店铺ID"
                },
                "biz_no": {
                    "type": "string",
                    "description": "支付业务唯一请求号，可以使用uuid,max=36"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "支付方式(抖音时需要传入4，无需选定支付宝\u0026微信),in_enum,min=1"
                },
                "amount": {
                    "type": "integer",
                    "description": "支付金额（单位：分），允许0分订单创建"
                },
                "submitted": {
                    "type": "boolean",
                    "description": "是否直接提交支付"
                },
                "remark": {
                    "type": "string",
                    "description": "透传大字段(外围指定，不感知),max=1024"
                },
                "isv_app_id": {
                    "type": "string",
                    "description": "服务商app_id（小程序插件支付场景必须），非插件模式取token的app_id"
                },
                "isv_open_id": {
                    "type": "string",
                    "description": "服务商open_id（小程序插件支付场景必须），非插件模式取token的open_id"
                },
                "details": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.PayDetailView"
                    },
                    "description": "明细信息(某些返佣场景需要)，本期不实际使用，无需传入"
                },
                "client_ip": {
                    "type": "string",
                    "description": "请求者IP地址"
                }
            },
            "required": [
                "order_key",
                "sg_id",
                "app_id",
                "open_id",
                "source_type",
                "biz_type",
                "biz_no",
                "pay_type",
                "client_ip"
            ]
        },
        ".pay.CreateRefundOrderRequest": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "支付单号"
                },
                "emp_id": {
                    "type": "integer",
                    "description": "员工ID"
                },
                "refund_amount": {
                    "type": "integer",
                    "description": "退款金额(单位：分)，仅0元单允许退款金额为0"
                },
                "biz_no": {
                    "type": "string",
                    "description": "请求唯一标识(用于幂等)"
                },
                "reason": {
                    "type": "string",
                    "description": "退款原因"
                }
            },
            "required": [
                "order_number",
                "emp_id",
                "biz_no"
            ]
        },
        ".pay.CreateWechatAccountRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名,min=1,max=24"
                },
                "merchant_id": {
                    "type": "string",
                    "description": "子商户号,min=1,max=32"
                },
                "principal_name": {
                    "type": "string",
                    "description": "主体,min=1,max=64"
                },
                "type": {
                    "type": "integer",
                    "description": "账户类型,in_enum"
                }
            },
            "required": [
                "name",
                "merchant_id",
                "principal_name",
                "type"
            ]
        },
        ".pay.DefaultResp": {
            "type": "object",
            "properties": {
                "status": {
                    "type": "boolean",
                    "description": "请求是否成功"
                },
                "error_code": {
                    "type": "string",
                    "description": "细粒度业务错误码，一般仅用于判定业务错误特定分支，如果不判定可以简易将此时的error_message展示给前端；其他类别时error_code为锁定字段\nInvalidArgument~BAD_REQUEST；AuthenticatedError~Unauthenticated； UserCancelled~USER_CANCELLED；SystemError~SYSTEM_ERROR"
                },
                "error_message": {
                    "type": "string",
                    "description": "错误描述"
                },
                "error_type": {
                    "type": "string",
                    "description": "错误类型: InvalidArgument~参数错误；AuthenticatedError~身份验证错误；BizError~业务错误；UserCancelled~调用方取消；SystemError~系统错误"
                }
            },
            "description": "标准返回结构"
        },
        ".pay.DoPayOrderView": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "支付单号"
                },
                "status": {
                    "type": "integer",
                    "description": "支付单状态"
                },
                "source": {
                    "type": "integer",
                    "description": "支付场景"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "所选支付方式"
                },
                "wechat_prepay_info": {
                    "$ref": "#/definitions/.pay.WechatPrepayInfo",
                    "description": "微信预支付单提交信息"
                },
                "alipay_trade_no": {
                    "type": "string",
                    "description": "支付宝预支付单号"
                },
                "bytedance_prepay_info": {
                    "type": "string",
                    "description": "字节跳动预支付单信息(由于并非原生拼装，暂时仅透传，不支持字段解读和对齐，防止变更)"
                }
            }
        },
        ".pay.EditAlipayAccountRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "收款账户ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名,min=1,max=24"
                }
            },
            "required": [
                "id",
                "name"
            ]
        },
        ".pay.EditPayGlobalConfigRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "config": {
                    "type": "integer",
                    "description": "配置类型"
                },
                "store_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    },
                    "description": "自定义门店ID序列,unique,dive,min=1"
                }
            }
        },
        ".pay.EditWechatAccountRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "id": {
                    "type": "integer",
                    "description": "收款账户ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名,min=1,max=24"
                }
            },
            "required": [
                "id",
                "name"
            ]
        },
        ".pay.GetAlipayAccountListResp": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "数量"
                },
                "accounts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.AlipayAccountView"
                    },
                    "description": "账户列表"
                }
            }
        },
        ".pay.GetAvailablePayTypesRequest": {
            "type": "object",
            "properties": {
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "source": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "biz_type": {
                    "type": "integer",
                    "description": "支付业务类型,in_enum"
                }
            },
            "required": [
                "sg_id",
                "source",
                "biz_type"
            ]
        },
        ".pay.GetPayGlobalConfigResp": {
            "type": "object",
            "properties": {
                "config": {
                    "type": "integer",
                    "description": "配置类型"
                },
                "stores": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.AccountConfigStoreView"
                    },
                    "description": "自行配置门店列表"
                }
            }
        },
        ".pay.GetPayStoreConfigRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "目标配置（自营~0，门店~门店ID）"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "平台,oneof=2 3 4"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）"
                }
            },
            "required": [
                "pay_type",
                "page_no",
                "page_size"
            ]
        },
        ".pay.GetPayStoreConfigResp": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "数量"
                },
                "stores": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.PayStoreConfigView"
                    },
                    "description": "店铺列表"
                }
            }
        },
        ".pay.GetWechatAccountListResp": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "数量"
                },
                "accounts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.WechatAccountView"
                    },
                    "description": "账户列表"
                }
            }
        },
        ".pay.MixCallbackRequest": {
            "type": "object",
            "properties": {
                "body": {
                    "type": "string",
                    "description": "推送body(在外侧转为json，但由于签名校验需要+外部变更可能性，这里不定义具体字段)"
                }
            }
        },
        ".pay.PayAccountSelectionRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "目标配置（自营~0，门店~门店ID）"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "平台,oneof=2 3 4"
                },
                "page_no": {
                    "type": "integer",
                    "description": "页数"
                },
                "page_size": {
                    "type": "integer",
                    "description": "每页数量（不超过100）"
                }
            },
            "required": [
                "pay_type",
                "page_no",
                "page_size"
            ]
        },
        ".pay.PayAccountSelectionResp": {
            "type": "object",
            "properties": {
                "total": {
                    "type": "integer",
                    "description": "数量"
                },
                "accounts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.PayAccountSelectionView"
                    },
                    "description": "account列表"
                }
            }
        },
        ".pay.PayAccountSelectionView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名"
                },
                "merchant_id": {
                    "type": "string",
                    "description": "微信子商户号"
                },
                "principal_name": {
                    "type": "string",
                    "description": "微信主体名称"
                },
                "app_id": {
                    "type": "string",
                    "description": "支付宝 \u0026 字节跳动AppID"
                }
            }
        },
        ".pay.PayDetailView": {
            "type": "object",
            "properties": {
                "prod_id": {
                    "type": "integer",
                    "description": "商品ID"
                },
                "sku_id": {
                    "type": "integer",
                    "description": "规格ID"
                },
                "prod_name": {
                    "type": "string",
                    "description": "商品名称"
                },
                "sku_name": {
                    "type": "string",
                    "description": "规格名称"
                },
                "price": {
                    "type": "integer",
                    "description": "分摊后价格"
                },
                "quantity": {
                    "type": "integer",
                    "description": "数量"
                }
            }
        },
        ".pay.PayOrderView": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "支付单号"
                },
                "status": {
                    "type": "integer",
                    "description": "支付单状态"
                },
                "source": {
                    "type": "integer",
                    "description": "支付场景"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "所选支付方式"
                },
                "origin_amount": {
                    "type": "integer",
                    "description": "原始支付金额（单位：分）"
                },
                "merchant_discount": {
                    "type": "integer",
                    "description": "商户优惠金额"
                },
                "platform_discount": {
                    "type": "integer",
                    "description": "平台优惠金额"
                },
                "user_payed": {
                    "type": "integer",
                    "description": "用户实付金额"
                },
                "receive": {
                    "type": "integer",
                    "description": "商家实收金额"
                },
                "refunded_amount": {
                    "type": "integer",
                    "description": "累计退款金额（负数，单位：分）"
                },
                "pay_type_name": {
                    "type": "string",
                    "description": "支付方式名称"
                },
                "pay_time": {
                    "type": "string",
                    "description": "支付时间(YYYY-mm-dd HH:MM:SS)"
                },
                "remark": {
                    "type": "string",
                    "description": "透传大字段(外围指定，不感知)"
                },
                "biz_no": {
                    "type": "string",
                    "description": "外部订单号"
                },
                "order_key": {
                    "type": "string",
                    "description": "用户身份标识"
                },
                "biz_type": {
                    "type": "integer",
                    "description": "订单类型"
                },
                "card_info": {
                    "type": "string",
                    "description": "卡信息"
                },
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "门店ID(自营订单为0)"
                }
            },
            "description": "支付单详情 \u0026 支付单成功消息，topic=pay-order_pay_success"
        },
        ".pay.PayStoreConfigView": {
            "type": "object",
            "properties": {
                "store_id": {
                    "type": "integer",
                    "description": "门店ID"
                },
                "store_name": {
                    "type": "string",
                    "description": "门店名"
                },
                "is_customized": {
                    "type": "boolean",
                    "description": "是否店铺自行配置"
                },
                "account": {
                    "$ref": "#/definitions/.pay.PayAccountSelectionView",
                    "description": "账户信息"
                }
            }
        },
        ".pay.PayTypeList": {
            "type": "object",
            "properties": {
                "pay_types": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.pay.PayTypeView"
                    },
                    "description": "可用支付方式列表"
                }
            }
        },
        ".pay.PayTypeView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "ID"
                },
                "name": {
                    "type": "string",
                    "description": "支付方式名称"
                }
            }
        },
        ".pay.QueryAlipayAccountApplyResp": {
            "type": "object",
            "properties": {
                "account_info": {
                    "$ref": "#/definitions/.pay.AlipayAccountView",
                    "description": "收款账户信息"
                },
                "query_result": {
                    "$ref": "#/definitions/.wxpay.AliFaceToFaceSignQueryResponse",
                    "description": "进件系统返回信息"
                }
            }
        },
        ".pay.QueryWechatAccountApplyResp": {
            "type": "object",
            "properties": {
                "account_info": {
                    "$ref": "#/definitions/.pay.WechatAccountView",
                    "description": "收款账户信息"
                },
                "query_result": {
                    "$ref": "#/definitions/.wxpay.ApplymentQueryResponse",
                    "description": "进件信息"
                }
            }
        },
        ".pay.RefundOrderView": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "退款单号"
                },
                "status": {
                    "type": "integer",
                    "description": "退款单状态"
                },
                "source": {
                    "type": "integer",
                    "description": "支付场景"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "所选支付方式"
                },
                "origin_amount": {
                    "type": "integer",
                    "description": "退还支付金额（单位：分）"
                },
                "merchant_discount": {
                    "type": "integer",
                    "description": "退还商家优惠金额"
                },
                "platform_discount": {
                    "type": "integer",
                    "description": "退还平台优惠金额"
                },
                "user_payed": {
                    "type": "integer",
                    "description": "退还用户实付金额"
                },
                "receive": {
                    "type": "integer",
                    "description": "退还商家实收金额"
                },
                "pay_type_name": {
                    "type": "string",
                    "description": "退款方式名称"
                },
                "pay_time": {
                    "type": "string",
                    "description": "退款时间(YYYY-mm-dd HH:MM:SS)"
                },
                "remark": {
                    "type": "string",
                    "description": "支付透传大字段(外围指定，不感知)"
                },
                "reason": {
                    "type": "string",
                    "description": "退款原因"
                },
                "biz_no": {
                    "type": "string",
                    "description": "外部订单号"
                },
                "pay_order_number": {
                    "type": "string",
                    "description": "原支付单号"
                },
                "order_key": {
                    "type": "string",
                    "description": "用户身份标识"
                },
                "biz_type": {
                    "type": "integer",
                    "description": "订单类型"
                },
                "card_info": {
                    "type": "string",
                    "description": "卡信息"
                },
                "sg_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "门店ID(自营订单为0)"
                }
            },
            "description": "退款单单详情 \u0026 退款单抵达终态消息，topic=pay-order_refund_finish"
        },
        ".pay.RefundRetryRequest": {
            "type": "object",
            "properties": {
                "order_number": {
                    "type": "string",
                    "description": "退款单号"
                },
                "is_marked": {
                    "type": "boolean",
                    "description": "是否标记退款成功（仅退款失败订单允许通过此标记更新为退款协商成功）"
                },
                "emp_id": {
                    "type": "integer",
                    "description": "员工ID"
                }
            },
            "required": [
                "order_number",
                "emp_id"
            ]
        },
        ".pay.StringResp": {
            "type": "object",
            "properties": {
                "msg": {
                    "type": "string",
                    "description": "返回字符串，需要配合customResponseHandler处理"
                }
            }
        },
        ".pay.UnbindPayStoreConfigRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "store_id": {
                    "type": "integer",
                    "description": "目标配置（自营~0，门店~门店ID）"
                },
                "pay_type": {
                    "type": "integer",
                    "description": "平台,oneof=2 3 4"
                }
            },
            "required": [
                "store_id",
                "pay_type"
            ]
        },
        ".pay.UploadImageRequest": {
            "type": "object",
            "properties": {
                "token": {
                    "$ref": "#/definitions/.pay.WebToken",
                    "description": "token"
                },
                "p_store_id": {
                    "type": "integer",
                    "description": "总部/门店ID"
                },
                "image": {
                    "type": "string",
                    "description": "图片base64信息"
                },
                "image_type": {
                    "type": "string",
                    "description": "图片文件类型"
                }
            },
            "required": [
                "image"
            ]
        },
        ".pay.WebToken": {
            "type": "object",
            "properties": {
                "emp_id": {
                    "type": "integer",
                    "description": "员工ID"
                },
                "brand_id": {
                    "type": "integer",
                    "description": "品牌ID"
                },
                "name": {
                    "type": "string",
                    "description": "员工姓名"
                },
                "g_id": {
                    "type": "string",
                    "description": "统一账号ID"
                }
            },
            "description": "web token 标准结构",
            "required": [
                "emp_id",
                "brand_id"
            ]
        },
        ".pay.WechatAccountView": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer",
                    "description": "ID"
                },
                "name": {
                    "type": "string",
                    "description": "别名"
                },
                "merchant_id": {
                    "type": "string",
                    "description": "子商户号"
                },
                "principal_name": {
                    "type": "string",
                    "description": "主体"
                },
                "status": {
                    "type": "integer",
                    "description": "账户状态"
                },
                "type": {
                    "type": "integer",
                    "description": "账户类型"
                }
            }
        },
        ".pay.WechatPrepayInfo": {
            "type": "object",
            "properties": {
                "appId": {
                    "type": "string",
                    "description": "小程序id"
                },
                "nonceStr": {
                    "type": "string",
                    "description": "随机字符串"
                },
                "package": {
                    "type": "string",
                    "description": "订单详情扩展字符串，统一下单接口返回的prepay_id参数值，提交格式如：prepay_id=***"
                },
                "signType": {
                    "type": "string",
                    "description": "签名方式"
                },
                "timeStamp": {
                    "type": "string",
                    "description": "时间戳（秒）"
                },
                "paySign": {
                    "type": "string",
                    "description": "签名"
                }
            }
        },
        ".wxpay.AccountInfo": {
            "type": "object",
            "properties": {
                "bank_account_type": {
                    "type": "string",
                    "description": "账户类型"
                },
                "account_bank": {
                    "type": "string",
                    "description": "开户银行"
                },
                "account_name": {
                    "type": "string",
                    "description": "开户名称"
                },
                "bank_address_code": {
                    "type": "string",
                    "description": "开户银行省市编码"
                },
                "bank_branch_id": {
                    "type": "string",
                    "description": "开户银行联行号"
                },
                "bank_name": {
                    "type": "string",
                    "description": "开户银行全称 （含支行）"
                },
                "account_number": {
                    "type": "string",
                    "description": "银行帐号"
                }
            },
            "required": [
                "bank_account_type",
                "account_bank",
                "account_name",
                "bank_address_code",
                "account_number"
            ]
        },
        ".wxpay.AccountValidation": {
            "type": "object",
            "properties": {
                "account_name": {
                    "type": "string",
                    "description": "付款户名"
                },
                "account_no": {
                    "type": "string",
                    "description": "付款卡号"
                },
                "pay_amount": {
                    "type": "string",
                    "description": "汇款金额 （以分为单位）"
                },
                "destination_account_number": {
                    "type": "string",
                    "description": "收款卡号"
                },
                "destination_account_name": {
                    "type": "string",
                    "description": "收款户名"
                },
                "destination_account_bank": {
                    "type": "string",
                    "description": "开户银行"
                },
                "city": {
                    "type": "string",
                    "description": "省市信息"
                },
                "remark": {
                    "type": "string",
                    "description": "备注信息"
                },
                "deadline": {
                    "type": "string",
                    "description": "汇款截止时间"
                }
            },
            "description": "汇款账户验证信息"
        },
        ".wxpay.AliFaceToFaceSignQueryResponse": {
            "type": "object",
            "properties": {
                "applyNo": {
                    "type": "string",
                    "description": "申请单号"
                },
                "brandId": {
                    "type": "string",
                    "description": "品牌id"
                },
                "alipayAccount": {
                    "type": "string",
                    "description": "阿里账号"
                },
                "contactName": {
                    "type": "string",
                    "description": "联系人名称"
                },
                "contactMobile": {
                    "type": "string",
                    "description": "联系人手机号"
                },
                "contactEmail": {
                    "type": "string",
                    "description": "联系人邮箱"
                },
                "mccCode": {
                    "type": "string",
                    "description": "商家经营类目"
                },
                "specialLicensePic": {
                    "type": "string",
                    "description": "企业特殊资质图片"
                },
                "specialLicensePicUrl": {
                    "type": "string",
                    "description": "企业特殊资质图片地址"
                },
                "rate": {
                    "type": "string",
                    "description": "服务费率"
                },
                "signAndAuth": {
                    "type": "boolean",
                    "description": "签约且授权操作"
                },
                "businessLicenseNo": {
                    "type": "string",
                    "description": "营业执照号码"
                },
                "businessLicensePic": {
                    "type": "string",
                    "description": "营业执照图片"
                },
                "businessLicensePicUrl": {
                    "type": "string",
                    "description": "营业执照图片地址"
                },
                "businessLicenseAuthPic": {
                    "type": "string",
                    "description": "营业执照授权函图片"
                },
                "businessLicenseAuthPicUrl": {
                    "type": "string",
                    "description": "营业执照授权函图片地址"
                },
                "longTerm": {
                    "type": "boolean",
                    "description": "是否长期有效"
                },
                "dateLimitation": {
                    "type": "string",
                    "description": "营业期限"
                },
                "shopScenePic": {
                    "type": "string",
                    "description": "店铺内景照片"
                },
                "shopScenePicUrl": {
                    "type": "string",
                    "description": "店铺内景照片地址"
                },
                "shopSignBoardPic": {
                    "type": "string",
                    "description": "店铺门头照片"
                },
                "shopSignBoardPicUrl": {
                    "type": "string",
                    "description": "店铺门头照片地址"
                },
                "applyState": {
                    "type": "string",
                    "description": "申请状态"
                },
                "applyStateDesc": {
                    "type": "string",
                    "description": "申请状态描述"
                },
                "confirmUrl": {
                    "type": "string",
                    "description": "确认签约连接"
                },
                "rejectReason": {
                    "type": "string",
                    "description": "审核失败原因"
                }
            },
            "description": "支付当面付查询结果"
        },
        ".wxpay.AliFaceToFaceSignResponse": {
            "type": "object",
            "properties": {
                "brandId": {
                    "type": "string",
                    "description": "品牌id"
                },
                "applyNo": {
                    "type": "string",
                    "description": "申请单号"
                },
                "alipayAccount": {
                    "type": "string",
                    "description": "商户支付宝账号"
                },
                "applyState": {
                    "type": "string",
                    "description": "申请状态"
                },
                "applyStateDesc": {
                    "type": "string",
                    "description": "申请状态描述"
                }
            },
            "description": "支付宝当面付申请返回"
        },
        ".wxpay.ApplymentQueryResponse": {
            "type": "object",
            "properties": {
                "apply_type": {
                    "type": "string",
                    "description": "申请类型"
                },
                "mch_id": {
                    "type": "string",
                    "description": "商户号"
                },
                "organization_type": {
                    "type": "string",
                    "description": "主体类型"
                },
                "biz_license_info": {
                    "$ref": "#/definitions/.wxpay.BizLicenseInfo",
                    "description": "营业执照/登记证书信息"
                },
                "organization_cert_info": {
                    "$ref": "#/definitions/.wxpay.OrganizationCertInfo",
                    "description": "组织机构代码证信息"
                },
                "id_doc_type": {
                    "type": "string",
                    "description": "经营者/法人证件类型"
                },
                "id_card_info": {
                    "$ref": "#/definitions/.wxpay.IDCardInfo",
                    "description": "经营者/法人身份证信息"
                },
                "id_doc_info": {
                    "$ref": "#/definitions/.wxpay.IDDocInfo",
                    "description": "经营者/法人其他类型证件信息"
                },
                "need_account_info": {
                    "type": "boolean",
                    "description": "是否填写结算银行账户"
                },
                "account_info": {
                    "$ref": "#/definitions/.wxpay.AccountInfo",
                    "description": "结算银行账户"
                },
                "contact_info": {
                    "$ref": "#/definitions/.wxpay.ContactInfo",
                    "description": "超级管理员信息"
                },
                "sales_scene_info": {
                    "$ref": "#/definitions/.wxpay.SalesSceneInfo",
                    "description": "店铺信息"
                },
                "merchant_shortname": {
                    "type": "string",
                    "description": "商户简称"
                },
                "qualifications": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "特殊资质"
                },
                "business_addition_pics": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "补充材料"
                },
                "business_addition_desc": {
                    "type": "string",
                    "description": "补充说明"
                },
                "brand_id": {
                    "type": "string",
                    "description": "品牌id"
                },
                "wx_applyment_id": {
                    "type": "string",
                    "description": "微信申请单编号"
                },
                "apply_state": {
                    "type": "string",
                    "description": "申请状态"
                },
                "apply_state_desc": {
                    "type": "string",
                    "description": "申请状态描述"
                },
                "sign_url": {
                    "type": "string",
                    "description": "签约链接"
                },
                "account_validation": {
                    "$ref": "#/definitions/.wxpay.AccountValidation",
                    "description": "汇款账户验证信息"
                },
                "sub_mch_id": {
                    "type": "string",
                    "description": "子商户商户号"
                },
                "audit_details": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/.wxpay.AuditDetail"
                    },
                    "description": "驳回原因详情"
                },
                "legal_validation_url": {
                    "type": "string",
                    "description": "法人验证链接"
                },
                "create_time": {
                    "type": "string",
                    "description": "创建时间"
                },
                "update_time": {
                    "type": "string",
                    "description": "修改时间"
                },
                "qualifications_url": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "特殊资质照片url"
                },
                "business_addition_pics_url": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "description": "补充材料照片url"
                }
            },
            "description": "品牌维度查询进件申请详情返回"
        },
        ".wxpay.ApplymentSubmitResponse": {
            "type": "object",
            "properties": {
                "apply_no": {
                    "type": "string",
                    "description": "申请编号"
                }
            },
            "description": "提交申请返回"
        },
        ".wxpay.AuditDetail": {
            "type": "object",
            "properties": {
                "param_name": {
                    "type": "string",
                    "description": "参数名称"
                },
                "reject_reason": {
                    "type": "string",
                    "description": "驳回原因"
                }
            },
            "description": "驳回原因详情"
        },
        ".wxpay.BizLicenseInfo": {
            "type": "object",
            "properties": {
                "business_license_copy": {
                    "type": "string",
                    "description": "证件扫描件 - MediaID"
                },
                "business_license_number": {
                    "type": "string",
                    "description": "证件注册号"
                },
                "merchant_name": {
                    "type": "string",
                    "description": "商户名称"
                },
                "legal_person": {
                    "type": "string",
                    "description": "经营者/法定代表人姓名"
                },
                "company_address": {
                    "type": "string",
                    "description": "注册地址"
                },
                "business_time": {
                    "type": "string",
                    "description": "营业期限"
                },
                "copy_url": {
                    "type": "string",
                    "description": "证件照片url (返回值有)"
                }
            },
            "required": [
                "business_license_copy",
                "business_license_number",
                "merchant_name",
                "legal_person"
            ]
        },
        ".wxpay.ContactInfo": {
            "type": "object",
            "properties": {
                "contact_type": {
                    "type": "string",
                    "description": "超级管理员类型"
                },
                "contact_name": {
                    "type": "string",
                    "description": "超级管理员姓名"
                },
                "contact_id_card_number": {
                    "type": "string",
                    "description": "超级管理员身份证件号码"
                },
                "mobile_phone": {
                    "type": "string",
                    "description": "超级管理员手机"
                },
                "contact_email": {
                    "type": "string",
                    "description": "超级管理员邮箱"
                }
            },
            "required": [
                "contact_type",
                "contact_name",
                "contact_id_card_number",
                "mobile_phone"
            ]
        },
        ".wxpay.IDCardInfo": {
            "type": "object",
            "properties": {
                "id_card_copy": {
                    "type": "string",
                    "description": "身份证人像面照片"
                },
                "id_card_national": {
                    "type": "string",
                    "description": "身份证国徽面照片"
                },
                "id_card_name": {
                    "type": "string",
                    "description": "身份证姓名"
                },
                "id_card_number": {
                    "type": "string",
                    "description": "身份证号码"
                },
                "id_card_valid_time": {
                    "type": "string",
                    "description": "身份证有效期限"
                },
                "card_url": {
                    "type": "string",
                    "description": "身份证人像面照片url (返回值有)"
                },
                "national_url": {
                    "type": "string",
                    "description": "身份证国徽面照片url (返回值有)"
                }
            },
            "required": [
                "id_card_copy",
                "id_card_national",
                "id_card_name",
                "id_card_number",
                "id_card_valid_time"
            ]
        },
        ".wxpay.IDDocInfo": {
            "type": "object",
            "properties": {
                "id_doc_name": {
                    "type": "string",
                    "description": "证件姓名"
                },
                "id_doc_number": {
                    "type": "string",
                    "description": "证件号码"
                },
                "id_doc_copy": {
                    "type": "string",
                    "description": "证件照片"
                },
                "doc_period_end": {
                    "type": "string",
                    "description": "证件结束日期"
                },
                "copy_url": {
                    "type": "string",
                    "description": "证件照片url (返回值有)"
                }
            },
            "required": [
                "id_doc_name",
                "id_doc_number",
                "id_doc_copy",
                "doc_period_end"
            ]
        },
        ".wxpay.ImageUploadResponse": {
            "type": "object",
            "properties": {
                "media_id": {
                    "type": "string",
                    "description": "media_id"
                }
            }
        },
        ".wxpay.ImageUploadV2Response": {
            "type": "object",
            "properties": {
                "imageName": {
                    "type": "string",
                    "description": "文件名称"
                },
                "imageUrl": {
                    "type": "string",
                    "description": "文件oss地址"
                }
            }
        },
        ".wxpay.OrganizationCertInfo": {
            "type": "object",
            "properties": {
                "organization_copy": {
                    "type": "string",
                    "description": "组织机构代码证照片"
                },
                "organization_number": {
                    "type": "string",
                    "description": "组织机构代码"
                },
                "organization_time": {
                    "type": "string",
                    "description": "组织机构代码有效期限"
                },
                "copy_url": {
                    "type": "string",
                    "description": "照片url (返回值有)"
                }
            },
            "required": [
                "organization_copy",
                "organization_number",
                "organization_time"
            ]
        },
        ".wxpay.SalesSceneInfo": {
            "type": "object",
            "properties": {
                "store_name": {
                    "type": "string",
                    "description": "店铺名称"
                },
                "store_url": {
                    "type": "string",
                    "description": "店铺链接"
                },
                "store_qr_code": {
                    "type": "string",
                    "description": "店铺二维码"
                },
                "mini_program_sub_appid": {
                    "type": "string",
                    "description": "小程序AppID"
                }
            },
            "required": [
                "store_name"
            ]
        }
    }
},
            dom_id: '#swagger-ui',
            validatorUrl: null,
            presets: [
                SwaggerUIBundle.presets.apis,
                SwaggerUIStandalonePreset
            ],
            plugins: [
                SwaggerUIBundle.plugins.DownloadUrl
            ],
            layout: "StandaloneLayout"
        })

        window.ui = ui
    }
</script>
</body>

</html>